//锟斤拷锟斤拷图
var n=0;
var focusNum=5;
var autoStart;
function Mea(value){
    n=value;
    setBg(value);
    plays(value);
    //conaus(n);
}
function setBg(value){
    focusNum=document.getElementById("au").childNodes.length-1;
    for(var i=0;i<focusNum;i++){
        document.getElementById("t"+i+"").className="bbg0";
    }
    document.getElementById("t"+value+"").className="bbg1";
}
function plays(value){
    try
    {
        with (au){
            filters[0].Apply();
            for(i=0;i<focusNum;i++)i==value?children[i].style.display="block":children[i].style.display="none";
            filters[0].play();
        }
    }
    catch(e)
    {
        var d = document.getElementById("au").getElementsByTagName("div");
        for(i=0;i<focusNum;i++)i==value?d[i].style.display="block":d[i].style.display="none";
    }
}
/*function conaus(value){
 try
 {
 with (conau){

 for(i=0;i<2;i++)i==value?children[i].style.display="block":children[i].style.display="none";

 }
 }
 catch(e)
 {
 var d = document.getElementById("conau").getElementsByTagName("div");
 for(i=0;i<2;i++)i==value?d[i].style.display="block":d[i].style.display="none";
 }

 }*/
function clearAuto(){clearInterval(autoStart)}
function setAuto(){
    autoStart=setInterval("auto()", 3000);
}
function auto(){
    n++;
    if(n>focusNum)n=0;
    Mea(n);
    //conaus(n);
}

setAuto();